package io.renren.service.repair;

import io.renren.common.service.CrudService;
import io.renren.dto.repair.RepairEvaluationDTO;
import io.renren.entity.repair.RepairEvaluationEntity;


/**
 * 报修评价表
 *
 * @author dio 167762802@QQ.com
 * @since 1.0.0 2025-04-12
 */
public interface RepairEvaluationService extends CrudService<RepairEvaluationEntity, RepairEvaluationDTO> {
    
    /**
     * 根据报修ID获取评价
     * @param repairId 报修ID
     * @return 评价信息
     */
    RepairEvaluationEntity getByRepairId(Long repairId);
    
    /**
     * 判断报修是否已评价
     * @param repairId 报修ID
     * @return 是否已评价
     */
    boolean isEvaluated(Long repairId);
}